package com.leyou.auth.config;

import com.aliyun.oss.OSS;
import com.aliyun.oss.OSSClientBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class OssConfig {

    @Bean
    public OSS ossClient(OssProperties o){
    return new OSSClientBuilder().build(o.getEndpoint(),o.getAccessKeyId(),o.getAccessKeySecret());
}
}
